package com.sz.mes.vo;

import com.diboot.core.binding.annotation.*;
import com.sz.mes.entity.Receive;
import com.diboot.iam.entity.IamUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.List;
import com.sz.mes.entity.Outbound;

/**
 * 签收 ListVO定义
 * @author hem
 * @version 1.0
 * @date 2023-06-29
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
public class ReceiveListVO extends Receive {

    private static final long serialVersionUID = -6169541575160980696L;

    /**
     * 关联字段 系统用户.真实姓名：IamUser.realname
     */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.recive_user_name=realname")
    private String iamUserRealname;

    /**
     * 关联字段 系统用户.真实姓名：IamUser.realname
     */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    /**
     * 关联字段 系统用户.真实姓名：IamUser.realname
     */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by=id")
    private String updateByName;

    /**
     * 关联字段 出库.商品名称：Outbound.goodsName
     */
    @BindField(entity = Outbound.class, field = "goodsName", condition = "this.outbound_id=id")
    private String outboundGoodsName;
}
